﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>合作伙伴</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../CSS/bootstrap3.2/css/bootstrap.css" rel="stylesheet">
    <link href="../../JqueryPlug/umeditor122/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />

    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script src="../../Scripts/avalon.js"></script>
    <script src="../../Scripts/B2CCommon.js"></script>
    <script type="text/javascript" src="../../JqueryPlug/umeditor122/umeditor.js"></script>
    <script type="text/javascript" src="../../JqueryPlug/umeditor122/umeditor.config.js"></script>
    <script>
        var model = avalon.define({
            $id: "SiteSet",
            wzitem: { Type: "合作伙伴", Title: "合作伙伴", Type: "", Type: "" },
            Savedata: function () {
                $.post("DLLAjaxHandler.ashx", { Action: "SaveHZHBData", Data: JSON.stringify(model.wzitem.$model) }, function (data) {
                    if (data == "success") {
                        toastr.success("操作成功");
                    }
                });

            }
        })
        avalon.ready(function () {
            if ($(".UEEDIT").length > 0) {
                $(".UEEDIT").each(function () {
                    var ubid = $(this).attr("id");
                    var um = UM.getEditor(ubid);
                })
            }
            $.getJSON("../Comon/ComAjaxHandler.ashx", { Action: "GetJsonData", Table: "PT_Info_Sites", QueryCondition: " AND ID=22" }, function (data) {
                if (data) {
                    model.wzitem = data[0];
                }
                else {
                }
            });
        })
    </script>
</head>
<body>
    <div class="container-fluid" ms-controller="SiteSet" style="margin-top: 20px">
        <form>
            <div class="form-group">
                <label>合作伙伴</label>
                <textarea  class="form-control UEEDIT" ms-duplex="wzitem.Details" id="hzhb" ></textarea>
            </div>

            <a class="btn btn-info" href="#" ms-click="Savedata()">保存数据</a>
        </form>
    </div>
    <script src="../../JqueryPlug/Toast/toastr.js"></script>

</body>
</html>
